home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 June / EnigmA AMIGA RUN 08 (1996)(G.R. Edizioni)(IT)[!][issue 1996-06][EARSAN CD VII].iso / earcd / games1 / tahckv10.lha / TA-Hack / source / FindTaskExt.h < prev    next >
C/C++ Source or Header  |  1996-04-14  |  811b  |  23 lines

  1. #include <exec/tasks.h>
  2.  
  3. #define FT_NONE    0
  4. #define FT_TASK    1
  5. #define FT_PROCESS 2
  6. #define FT_COMMAND 4
  7.  
  8. extern struct Task *FindTaskExt(char *name, BOOL casesensitive, ULONG *type);
  9.  
  10. /* This function will allow you to find tasks/processes.
  11.    name specified the name of the task/process
  12.    if casesensitive are TRUE the name must be exaclty the "name" otherwise
  13.    the search will be case insensitive ("ab" == "AB" == "aB"...)
  14.    with type you could specify the type, you will find. if type is specified,
  15.    after the call, the type will be stand in. (see FT_... above).
  16.    The type FT_COMMAND will mean, it is a process loaded in a CLI, exec´s
  17.    FindTask will never find this process (only the Shell/Mother Process).
  18.    
  19.    have fun.
  20.    
  21.    ©1996 ALeX Kazik (see TA-Hack.readme)
  22.    
  23.    PublicDomain.  */